/**
 * @name: article.entity
 * @data: 2024/4/11 9:14
 * @description 文章数据库表
 */
import {Column, Entity, PrimaryColumn} from "typeorm";

@Entity("article")
export default class Article {
  @PrimaryColumn({
    name: "article_id"
  })
  articleId: number;
  @Column()
  title:string;
  @Column()
  content:string;
  @Column({name:"author_id"})
  authorId:number;
  @Column({name:"create_time"})
  createTime:string;
  @Column({name:"update_time"})
  updateTime:string;
  @Column({name:"like_count"})
  likeCount:number;
}
